package jmu.zzh.alumnus.business.mapper;

import jmu.zzh.alumnus.business.entity.Donation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DonationMapper {
    int insert(Donation donation);

    List<Donation> selectByUserId(@Param("userId") Long userId);

    long countByUserId(@Param("userId") Long userId);

    List<Donation> selectAll();

    long countAll();
} 